package com.itmayiedu;

import com.itmayiedu.service.UserService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author by Mr. Li 2020/9/7 21:08
 */
public class test001 {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring.xml");
        UserService userService = (UserService) applicationContext.getBean("userServiceImpl");
        userService.add();
    }
}
